import javax.swing.ImageIcon
import java.awt.Font
import javax.swing.SwingConstants
import java.awt.event.{ActionListener,ActionEvent}
import javax.swing.DefaultComboBoxModel

package layoutVariety
{
	class ComboBox(ref:Int) extends Widget(ref)
	{
		val default = List("");
//		private var cb = new scala.swing.ComboBox[String](default)
//		cb.peer.setModel(scala.swing.ComboBox.newConstantModel[String](default))
//				
//		jc = cb
		
		
		// TODO: Solve immutability issue.
//		private var cb = new scala.swing.ComboBox(default)
//		cb.peer.setModel(new DefaultComboBoxModel[String](default))		
//		
//		def addItem (ref:AnyRef)
//		{
//			var item = ref.asInstanceOf[String]
//			cb.peer.addItem(item)
//		}
//		
//		def getSelected:String  = cb.selection.item			
	}
}